export const logMsg = function (...args) {
    console.log.call(console, ...args)
}

export const getUrlQuery = () => {
    const href = location.href;
    if (!href.includes("?")) {
        return {};
    }
    const queryStr = href.split("?")[1];
    const queryList = queryStr.split("&");
    const obj = {};
    queryList.forEach(item => {
        const [key, value] = item.split("=")
        obj[key] = value
    })
    return obj;
}

